package cn.tedu.vrd01test.controller;

import cn.tedu.vrd01test.entity.Callboard;
import cn.tedu.vrd01test.mapper.CallboardMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class CallboardController {
    @Autowired(required = false)
    CallboardMapper mapper;
    @RequestMapping("/callboardlist")
    public List<Callboard> selectCallList(){
        return mapper.selectCallList();
    }
}
